package com.lcf.system.controller;


import com.lcf.system.service.SysAddressService;
import com.lcf.system.vo.SysAddressVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 地区表(SysAddress)表控制层
 *
 * @author lcf
 * @since 2025-04-24 21:14:32
 */
@Tag(name = "地区表")
@RestController
@RequestMapping("sysAddress")
public class SysAddressController {
    @Resource
    private SysAddressService sysAddressService;

    /**
     * 列表
     */
    @Operation(summary = "列表")
    @RequestMapping("list/{pid}")
    public List<SysAddressVO> list(@PathVariable @Schema(description = "父id") long pid) {
        return sysAddressService.list(pid);
    }
}

